
#ifndef __LIB_C_TIME_H__
#define __LIB_C_TIME_H__


typedef	long	time_t;

struct tm
{
  int	tm_sec;
  int	tm_min;
  int	tm_hour;
  int	tm_mday;
  int	tm_mon;
  int	tm_year;
  int	tm_wday;
  int	tm_yday;
  int	tm_isdst;
};

#ifdef __cplusplus
extern "C"
{
#endif

time_t time(time_t *t);
void setime(time_t t);
struct tm *gmtime_r(const time_t *tim_p, struct tm * res);
time_t mktime(struct tm * tim_p);


#ifdef __cplusplus
}
#endif

#endif /* __LIB_C_TIME_H__ */
